package com.lg.atp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lg.atp.dao.ScheduleJobMapper;
import com.lg.atp.entity.ScheduleJob;
import com.lg.atp.service.ConfigService;

@Service("configService")
public class ConfigServiceImpl implements ConfigService {
	@Autowired
	private ScheduleJobMapper scheduleJobMapper;

	@Override
	public List<ScheduleJob> findLegalJobList() throws Exception {
		List<ScheduleJob> list = scheduleJobMapper.findDelJobList();
		return scheduleJobMapper.findLegalJobList();
	}

	@Override
	public List<ScheduleJob> findDelJobList() throws Exception {
		return scheduleJobMapper.findDelJobList();
	}

	@Override
	public List<ScheduleJob> selectByJobName(String jobName) throws Exception {
		return scheduleJobMapper.selectByJobName(jobName);
	}
	@Override
	public int updateByJobId(ScheduleJob record) throws Exception {
		return scheduleJobMapper.updateByJobId(record);
	}

}
